package com.example.sys.job.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.core.po.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "任务日志")
@TableName(value = "sys_job_log")
public class SysJobLog extends BasePo<SysJobLog> {

    @ApiModelProperty(value = "任务id")
    @TableField(value = "job_id")
    private String jobId;

    @ApiModelProperty(value = "开始时间")
    @TableField(value = "start_time")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(value = "end_time")
    private Date endTime;

    @ApiModelProperty(value = "状态")
    @TableField(value = "enabled")
    private Boolean enabled = Boolean.TRUE;

    @ApiModelProperty(value = "错误信息")
    @TableField(value = "error")
    private String error;
}
